﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 信息记录系统
{
    public partial class Form12 : Form
    {
        public Form12()
        {
            InitializeComponent();
        }

        private void tabControl1_DrawItem(object sender, DrawItemEventArgs e)
        {
            //该事件主要是选项卡进行竖立显示
            SolidBrush _Brush = new SolidBrush(Color.Black);//单色画刷
            RectangleF _TabTextArea = (RectangleF)tabControl1.GetTabRect(e.Index);//绘制区域
            StringFormat _sf = new StringFormat();//封装文本布局格式信息
            _sf.LineAlignment = StringAlignment.Center;
            _sf.Alignment = StringAlignment.Center;
            e.Graphics.DrawString(tabControl1.Controls[e.Index].Text, SystemInformation.MenuFont, _Brush, _TabTextArea, _sf);
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            //Random r = new Random();
            //int i = r.Next(100, 200);
            //this.ucWaveChart2.AddSource(i.ToString(), i);
            //this.ucWaveChart2.AddSource(i.ToString(), i);
        }

        private void ucWaveChart2_Load(object sender, EventArgs e)
        {
            //Random r = new Random();
            //int i = r.Next(0, 200);
            //this.ucWaveChart2.AddSource(i.ToString(), i);
        }

        private void pictureBox1_Click(object sender, EventArgs e)
        {
            //https://blog.csdn.net/weixin_33699914/article/details/85743041
            //需要实现上传多张图片后进行显示
        }

        private void tableLayoutPanel1_Paint(object sender, PaintEventArgs e)
        {

        }

        private void tabPage2_Click(object sender, EventArgs e)
        {

        }

        private void Form12_Load(object sender, EventArgs e)
        {

        }
    }
}
